package com.lovo.es.dao;

import com.lovo.es.Entity.NewEntity;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface INewsDao extends PagingAndSortingRepository<NewEntity,String>{
    public List<NewEntity> findAllByTitle(String title);
    public List<NewEntity> findAllByInfo(String info);

}
